package com.lagou.dao;

import com.lagou.domain.Course;
import com.lagou.domain.CourseSection;
import com.lagou.domain.CourseVo;
import com.lagou.domain.Teacher;

import java.util.List;

public interface CourseDao {
    public abstract List<Course> findAll();
    public abstract List<Course> findCourseByCondition(CourseVo courseVo);
    public abstract void saveCourse(Course course);
    public abstract void saveTeacher(Teacher teacher);
    public abstract CourseVo findCourseById(int id);
    public abstract void updateCourse(Course course);
    public abstract void updateTeacher(Teacher teacher);
    public abstract void updateCourseStatus(Course course);

    public abstract List<CourseSection> findSectionAndLessonByCourseId(int courseId);
}
